projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b412189
)
(perform-replace): Turn off case-fold-search
author
Karl Heuer
<kwzh@gnu.org>
Wed, 21 Jul 1999 23:01:38 +0000
(23:01 +0000)
committer
Karl Heuer
<kwzh@gnu.org>
Wed, 21 Jul 1999 23:01:38 +0000
(23:01 +0000)
if FROM-STRING argument has uppercase in it.
lisp/replace.el
patch
|
blob
|
history
diff --git
a/lisp/replace.el
b/lisp/replace.el
index 5412b127624b9387790c896151d55c04123382bc..4921fd1fd4faf85243420399c2a153b0f1a83b08 100644
(file)
--- a/
lisp/replace.el
+++ b/
lisp/replace.el
@@
-703,6
+703,9
@@
which will run faster and probably do exactly what you want."
(let ((nocasify (not (and case-fold-search case-replace
(string-equal from-string
(downcase from-string)))))
+ (case-fold-search (and case-fold-search
+ (string-equal from-string
+ (downcase from-string))))
(literal (not regexp-flag))
(search-function (if regexp-flag 're-search-forward 'search-forward))
(search-string from-string)